Telegram Group & Telegram Channel
#вопрос261

Напишите функцию, которая будет принимать отсортированный список чисел и возвращать медиану. Если число дробное, его нужно округлить до десятых.

Примеры:

median([1, 2, 4, 5, 6, 8, 8, 8, 10]) ➞ 6
median([2, 2, 6, 8, 8, 10, 10]) ➞ 8
median([1, 2, 2, 4, 7, 8, 9, 10]) ➞ 5.5



tg-me.com/pythonjuniorjob/898
Create:
Last Update:

#вопрос261

Напишите функцию, которая будет принимать отсортированный список чисел и возвращать медиану. Если число дробное, его нужно округлить до десятых.

Примеры:

median([1, 2, 4, 5, 6, 8, 8, 8, 10]) ➞ 6
median([2, 2, 6, 8, 8, 10, 10]) ➞ 8
median([1, 2, 2, 4, 7, 8, 9, 10]) ➞ 5.5

BY Python вопросы на собеседовании с ответами


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonjuniorjob/898

View MORE
Open in Telegram


Python вопросы на собеседовании с ответами Telegram | DID YOU KNOW?

Date: |

Tata Power whose core business is to generate, transmit and distribute electricity has made no money to investors in the last one decade. That is a big blunder considering it is one of the largest power generation companies in the country. One of the reasons is the company's huge debt levels which stood at ₹43,559 crore at the end of March 2021 compared to the company’s market capitalisation of ₹44,447 crore.

The STAR Market, as is implied by the name, is heavily geared toward smaller innovative tech companies, in particular those engaged in strategically important fields, such as biopharmaceuticals, 5G technology, semiconductors, and new energy. The STAR Market currently has 340 listed securities. The STAR Market is seen as important for China’s high-tech and emerging industries, providing a space for smaller companies to raise capital in China. This is especially significant for technology companies that may be viewed with suspicion on overseas stock exchanges.

Python вопросы на собеседовании с ответами from es


Telegram Python вопросы на собеседовании с ответами
FROM USA